package com.jianbo.proxy.service;

import com.jianbo.proxy.util.ResourceUtil;

public class FilterWebService {
    
    public static String jsCode(String content) {
        String code = ResourceUtil.readString("com/jianbo/proxy/js/base.js");
        content = content.replace("module.exports =", "var FilterWeb = ");
        content = code + "\n" + content + "FilterWeb.run();";
        return content;
    }
}
